import { Action, Actor } from 'iflux2';
import { SearchTypes} from '../constants/actionTypes.js'
export default class SearchActor extends Actor {
    defaultState () {
        return {
            search:{
                title:'',//文章标题
                columnId:''//文章栏目编号
            }
        }
    }

    @Action(SearchTypes.CHANGE_SEARCH_PARAM)
    changeSearchParam(state,param){
        return state.set('search',param);
    }
}